package com.cloudfun.campusshare.common.constant.miniprogram;

/**
 * Created by Huqin on 2020/4/16
 */
public enum WeChatErrorCode {
    SYSTEM_ERROR(-1, "系统繁忙，此时请开发者稍候再试"),
    OK(0, "请求成功"),
    CODE_ERROR(40029, "code 无效"),
    REQ_LIMITED(45011, "频率限制，每个用户每分钟100次"),
    ;

    private Integer code;
    private String msg;

    WeChatErrorCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
